﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace KSOAPlus
{
    public partial class main : Form
    {
        public main()
        {
            InitializeComponent();
            rightcopy.Text = Common.rightcopy;
            this.Text = "KSOA增强插件功能选择 【登录用户：" + Common.username + "】";
        }

        private void btnoutjxc_Click(object sender, EventArgs e)
        {
            SAIMSToExcel Form2 = new SAIMSToExcel();
            Form2.ShowInTaskbar = false;
            Form2.ShowDialog();            
        }

        private void btnoutdzh_Click(object sender, EventArgs e)
        {
            DZHToExcel Form1 = new DZHToExcel();
            Form1.ShowInTaskbar = false;
            Form1.ShowDialog();           
        }

        private void main_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (MessageBox.Show("是否确认退出程序？", "退出", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK)
            {
                this.Dispose();
                this.Close();
            }
            else
            {
                e.Cancel = true;
            }
        }

        private void btntoexcel_Click(object sender, EventArgs e)
        {
            SuperToExcel SuperToExcel = new SuperToExcel();
            SuperToExcel.ShowInTaskbar = false;
            SuperToExcel.ShowDialog();
        }

        private void btnconfig_Click(object sender, EventArgs e)
        {
            SysConfig SysConfig = new SysConfig();
            SysConfig.ShowInTaskbar = false;
            SysConfig.ShowDialog();
        }

        private void btnqueryuser_Click(object sender, EventArgs e)
        {
            UserInfo UserInfo = new UserInfo();
            UserInfo.ShowInTaskbar = false;
            UserInfo.ShowDialog();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            ToolTips ToolTips = new ToolTips();
            ToolTips.ShowInTaskbar = false;
            ToolTips.Show();
        }

        private void btnScanner_Click(object sender, EventArgs e)
        {
            Scanner Scanner = new Scanner();
            Scanner.ShowInTaskbar = false;
            Scanner.ShowDialog();
        }

        private void btnquerybill_Click(object sender, EventArgs e)
        {
            billquery billquery = new billquery();
            billquery.ShowInTaskbar = false;
            billquery.ShowDialog();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            string s=textBox1.Text;
            string m=Common.Decrypt(s);
            MessageBox.Show(m);

        }
    }
}
